Skip to content

validate PAX CLUSTER options before clustering - #2421

Open
reshke wants to merge 1 commit into
apache:mainfrom
reshke:fix-pax-cluster-options-20261124
Open

reshke wants to merge 1 commit into
apache:mainfrom
reshke:fix-pax-cluster-options-20261124

Conversation

@reshke

@reshke reshke commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

The PAX utility hook handles CLUSTER on tables with cluster_columns and returns before the core CLUSTER code validates the statement options. As a result, CLUSTER (bogus) succeeds and rewrites the PAX table.

Validate the options before the PAX path runs, using the same accepted option and error as the core command. Add a regression case that checks that an unknown option fails before changing the clustered state and that a valid VERBOSE option still works.

Fixes #ISSUE_Number

What does this PR do?

Type of Change

  • Bug fix (non-breaking change)
  • New feature (non-breaking change)
  • Breaking change (fix or feature with breaking changes)
  • Documentation update

Breaking Changes

Test Plan

  • Unit tests added/updated
  • Integration tests added/updated
  • Passed make installcheck
  • Passed make -C src/test installcheck-cbdb-parallel

Impact

Performance:

User-facing changes:

Dependencies:

Checklist

Additional Context

CI Skip Instructions


The PAX utility hook handles CLUSTER on tables with cluster_columns and
returns before the core CLUSTER code validates the statement options.
As a result, CLUSTER (bogus) succeeds and rewrites the PAX table.

Validate the options before the PAX path runs, using the same accepted
option and error as the core command. Add a regression case that checks
that an unknown option fails before changing the clustered state and
that a valid VERBOSE option still works.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant